package com.eshin.autotest.controller;

import com.eshin.autotest.listener.DemoEvent;
import com.eshin.autotest.service.HelloConfiguration3;
import com.eshin.autotest.service.HelloService;
import com.eshin.autotest.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Eshin
 * @title: HelloController
 * @projectName pay
 * @date 2019/5/2815:51
 */

@RestController
public class TestController {

    @Autowired
    TestService testService;

    @RequestMapping("/test")
    public String test(){
        testService.doService();
        System.out.println("test controller");
        return "test";
    }
}
